package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yl.auth.entity.ChuyuanjiesuanBean;
import com.yl.auth.mapper.ChuyuanjiesuanMapper;
import com.yl.auth.service.ChuyuanjiesuanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 */
@Service
public class ChuyuanjiesuanServiceImpl extends ServiceImpl<ChuyuanjiesuanMapper, ChuyuanjiesuanBean> implements ChuyuanjiesuanService {
    @Resource
    private ChuyuanjiesuanMapper chuyuanjiesuanMapper;

    @Override
    public IPage<ChuyuanjiesuanBean> selectpage(Page<ChuyuanjiesuanBean> page, ChuyuanjiesuanBean chuyuanjiesuanBean) {
        IPage<ChuyuanjiesuanBean> page1 = chuyuanjiesuanMapper.selepage(page, chuyuanjiesuanBean);
        return page1;
    }

    @Override
    public ChuyuanjiesuanBean getById(Long id) {
        ChuyuanjiesuanBean chuyuanjiesuanBean = chuyuanjiesuanMapper.getById(id);
        return chuyuanjiesuanBean;
    }

    @Override
    public void updatechuyuan(Long id) {
        chuyuanjiesuanMapper.updatechuyuan(id);
    }
}
